package com.hs.egova.mapping;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;

/**
 * @author husheng
 * @version v1.0
 * @date 2021/7/21 11:28
 * @email husheng@egova.com.cn
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "t_user")
@Builder
public class User implements Serializable {
    private static final long serialVersionUID = -7964155213463056679L;
    /**
     *  主键策略递增
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id = null;

    /**
     * 定义属性和表的映射关系
     */
    @ApiModelProperty("用户姓名")
    @Column(name = "user_name")
    private String userName = null;

    @ApiModelProperty("备注")
    @Column(name = "note")
    private String note = null;

}
